package com.zrgg.futuwen.base;

import rx.Subscription;

/**
 * Created by San on 2017/10/23.
 */

public interface BaseContract {
    interface BaseView {
        void showDialog(String text);//开启对话框

        void showDialog();//开启对话框

        void dismissDialog();//关闭对话框

        void showToast(String t);//执行错误提示

        void showToast(int tResId);//执行错误提示s
    }

    class Presenter<T extends BaseView> {
        protected T baseView;

        public Presenter(T baseView) {
            this.baseView = baseView;
        }

        public void onDestroy() {//销毁
            baseView = null;
        }
    }
}